//TOWN SCRIPT TEMPLATE

begintownscript;

variables;

body;

beginstate INIT_STATE;
	set_crime_tolerance(1);

	set_name(6,"Ruffian");
	set_name(7,"Helena");

if (get_flag(2,0) == 0) {
	set_flag(2,0,1);
	force_instant_terrain_redraw();
	message_dialog("You enter a small grove of trees. Not too far in the distance, you can hear the flirtatious giggle of a young girl and the outlandish accent of a young man chasing her.","Adventurers to the rescue! Or something!!");
	}

if (get_flag(2,1) != 0) {
	erase_char(6);
	erase_char(7);
	}
break;

beginstate EXIT_STATE;
//called when the party leaves the town

break;

beginstate START_STATE;
//called every turn when the party is in the town
if (get_ran(1,0,100) < 7)
	text_bubble_on_char(6,"Ah weel cetch you!");
if (get_ran(1,0,100) < 7)
	text_bubble_on_char(6,"Come beck here!");
if (get_ran(1,0,100) < 7)
	text_bubble_on_char(7,"Tee hee!");
if (get_ran(1,0,100) < 7)
	text_bubble_on_char(7,"*giggle*");

break;

beginstate 10;
	message_dialog("_Hey now,_ the ruffian says to the maiden fair, _they's no' playin'. They gonna keel us!_ The girl screams, and he picks her up and carriers her away faster than you can chase them into the underbrush.","You have failed to make them return home, but maybe you shouldn't have bothered to try, anyway.");
	erase_char(6);
	erase_char(7);
	set_flag(2,1,1);

	print_str_color("This quest cannot be finished. Sucks for you.",2);
	toggle_quest(6,0);
break;
break;